Method for multicasting of packets in pon residential gateways

ABSTRACT

A method for multicasting packets in a passive optical network (PON) residential gateway. The method comprises storing a payload portion of an input packet in a memory; duplicating a header of the input packet to create duplicate headers as the number of destination end-point devices; modifying each of the duplicated header to uniquely designate an output interface of an Ethernet medium access (MAC) adapter coupled to at least one of the destination endpoint devices; passing to the Ethernet MAC adapter its respective modified header together with a pointer to a location of the payload portion in the memory; generating a multicast packet by retrieving the payload portion from the memory and attaching the modified header to the payload portion; and transmitting the multicast packet to the destination endpoint device coupled to the Ethernet MAC adapter.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation-in-part of U.S. application Ser. No.12/254,187 filed on Oct. 20, 2008 the contents of which are hereinincorporated by reference.

TECHNICAL FIELD

The present invention relates generally to PON residential gateways, andmore particularly to multicasting packets in PON residential gateways.

BACKGROUND OF THE INVENTION

As the demand from users for bandwidth is rapidly increasing, opticaltransmission systems, where subscriber traffic is transmitted usingoptical networks, is installed to serve this demand. These networks aretypically referred to as fiber-to-the-curb (FTTC), fiber-to-the-building(FTTB), fiber-to-the-premise (FTTP), or fiber-to-the-home (FTTH). Eachsuch network provides an access from a central office (CO) to abuilding, or a home, via optical fibers installed near or up to thesubscribers' locations. As the transmission quantity of such an opticalcable is much greater than the bandwidth actually required by eachsubscriber, a passive optical network (PON), shared between a pluralityof subscribers through a splitter, was developed.

An exemplary diagram of a typical PON 100 is schematically shown inFIG. 1. The PON 100 includes M optical network units (ONUs) 120-1through 120-M (individually referred to generally as ONU 120), coupledto an optical line terminal (OLT) 130 via a passive optical splitter140. Traffic data transmission may be achieved by using two opticalwavelengths, one for the downstream direction and another for theupstream direction. Downstream transmission from the OLT 130 isbroadcast to all ONUs 120. Each ONU 120 filters its respective dataaccording to, for example, pre-assigned labels. The ONUs 120 transmitrespective data to the OLT 130 during different time slots allocated bythe OLT 130 for each ONU 120. The splitter 140 splits a single line intomultiple lines, for example, 1 to 32, or, in case of a longer distancefrom OLT 130 to ONUs 120,1 to 16. A plurality of endpoint devices (notshown) typically through residential gateway are connected to each ONU120. A packet sent from the OLT 130 may be multicast to endpoint devicesconnected to an ONU 120.

Gigabit PON (GPON) is an emerging standard currently being adopted bymany telecommunication companies in order to deliver high-speed dataservices to their subscribers. These services typically include a bundleof TV broadcasting, Internet, and telephone services. To provide theseservices, an ONU 120 is connected to a residential gateway installed inthe premises. As illustrated in FIG. 2, an input of a residentialgateway 210 is connected to an ONU 120. The gateway's 210 outputs arecoupled to a plurality of endpoint devices 220-1 through 220-N(individually referred to generally as an endpoint device 220). Anendpoint device 220 may be, for example, a telephone device, a TV setupbox, and a computer to which Internet connectivity is provided.Generally, a residential gateway may provide the functionality of modemand router and may be, for example, a cable modem, a router, a switch, awireless modem, a wireless router, and so on.

In some cases a data packet sent from the OLT 130 (see FIG. 1) should bemulticast to all or some of the endpoint devices 220 coupled to theresidential gateway 210. In addition, a data packet sent from anendpoint device 220 can be multicast to some or all other endpointdevices 220. A data packet sent from the OLT 130 over the PON istypically in the form a GEM frame and a data packet directed to orreceived from an endpoint device is a form of a medium access (MAC)packet. A MAC packet typically includes a payload portion and a headerdesignating at least a MAC address of an endpoint device 220.

When receiving a packet (either a GEM frame or a MAC packet), theresidential gateway 210 determines if the packet needs to be multicastto a multicast group, and if so the residential gateway 210 generatesMAC packets to be sent to endpoint device 220 in the multicast group. Amulticast group includes one or more destination endpoint devices 220and ports through which multicast frames will be transmitted.

Generally, there are two techniques to generate multicast packets. Onetechnique includes duplicating the payload portion and generating aheader to include an address of a destination endpoint device 220 and/oran output interface through which the packet should be sent. The headeris created by hard coding the MAC address. Such solution may save inmemory space and memory bandwidth as only the payload is duplicated(instead of the entire packet), but there is no flexibility when newendpoint devices 220 having addresses which are not pre-coded areconnected to the gateway 210. Another solution includes duplicating theentire data packet and modifying the header to designate the MAC andport ID using a software process. This is a flexible solution, bututilization of the memory space and memory bandwidth is not optimal.

SUMMARY OF THE INVENTION

Certain embodiments of the invention include a method for multicastingpackets in a passive optical network (PON) residential gateway. Themethod comprises storing a payload portion of an input packet in amemory; duplicating a header of the input packet to create duplicateheaders as the number of destination endpoint devices; modifying each ofthe duplicated headers to uniquely designate an output interface of anEthernet medium access (MAC) adapter coupled to at least one of thedestination endpoint devices; passing to the Ethernet MAC adapter itsrespective modified header together with a pointer to a location of thepayload portion in the memory; generating a multicast packet byretrieving the payload portion from the memory and attaching themodified header to the payload portion; and transmitting the multicastpacket to the destination endpoint device coupled to the Ethernet MACadapter.

Certain embodiments of the invention also include adapted to aresidential gateway multicast data packets in a passive optical network(PON). The residential gateway comprises a plurality of Ethernet mediaaccess control (MAC) adapters for interfacing with a plurality ofendpoint devices; a PON MAC adapter for interfacing with an optical lineterminal (OLT) of the PON; and a memory for storing at least payloadportions of input packets; and at least one packet processor forperforming the process of multicasting an input packet by: storing apayload portion of an input packet in the memory; duplicating the headerof the input packet to create duplicate headers as the number ofdestination endpoint devices; modifying each of the duplicated header touniquely designate an output interface of an Ethernet medium access(MAC) adapter coupled to at least one of the destination endpointdevices; passing to the Ethernet MAC adapter its respective modifiedheader together with a pointer to a location of the payload portion inthe memory; generating a multicast packet by retrieving the payloadportion from the memory and attaching the modified header to the payloadportion; and transmitting the multicast packet to the destinationendpoint device coupled the Ethernet MAC adapter.

BRIEF DESCRIPTION OF THE DRAWINGS

The subject matter that is regarded as the invention is particularlypointed out and distinctly claimed in the claims at the conclusion ofthe specification. The foregoing and other features and advantages ofthe invention will be apparent from the following detailed descriptiontaken in conjunction with the accompanying drawings.

FIG. 1 is an exemplary diagram of a PON.

FIG. 2 shows a typical installation of a residential gateway connectedto an ONU.

FIG. 3 is a diagram of the GPON residential gateway utilized formulticasting packets in a GPON according to an embodiment of theinvention.

FIG. 4 is a diagram illustrating the process of multicast incoming datapacket.

FIG. 5 is a flowchart describing the method for multicasting downstreamdata packets implemented in accordance with an embodiment of theinvention.

DETAILED DESCRIPTION OF THE INVENTION

It is important to note that the embodiments disclosed by the inventionare only examples of the many advantageous uses of the innovativeteachings herein. In general, statements made in the specification ofthe present application do not necessarily limit any of the variousclaimed inventions. Moreover, some statements may apply to someinventive features but not to others. In general, unless otherwiseindicated, singular elements may be in plural and vice versa with noloss of generality. In the drawings, like numerals refer to like partsthrough several views.

FIG. 3 shows a non-limiting and exemplary block diagram of a GPONresidential gateway 300 utilized for multicasting packets in a GPONaccording to an embodiment of the invention. The GPON residentialgateway 300 includes a microprocessor 310, dual packet processors 320-Aand 320-B (individually referred to generally as packet processor 320),a plurality of Ethernet media access control (MAC) adapters 330-1through 330-N (individually referred to generally as Ethernet adapter330), a GPON MAC adapter 340, a direct memory access (DMA) engine 350, adigital signal processor (DSP) 360, and a memory controller 370 thatinteracts with an external memory 305. An internal bus allows thecommunication between the microprocessor 310 and the packet processors320, while a broad bus 390 connects between the packet processors 320,the Ethernet adapters 330 and the GPON adapter 340.

The broad bus 390 transfers data at high rates and its architecture isbased on a push-ahead mechanism, using a binary tree topology. The broadbus 390 supports parallelism in read and write transactions and allowssimultaneous transfer of data from various units at the same time. In apreferred embodiment, the broad bus 390 communicates with the variouscomponents using broad bus handlers 395. A detailed description of thebroad bus 390 can be found in U.S. Pat. No. 7,370,127 assigned in commonto the same assignee as the present application, which is herebyincorporated for all that it contains.

The microprocessor 310 executes commands received from the packetprocessors 320-A and 320-B. The microprocessor 310 performs fastprocessing, where the execution of each command is completed in oneclock. In an exemplary embodiment of the present invention, themicroprocessor 310 may be a high-performance MIPS microprocessorincluding at least instruction cache and a data cache. Other types ofmicroprocessors are contemplated.

Each of the Ethernet MAC adapters 330 includes an Ethernet interface forinterfacing with endpoint devices 220 (see FIG. 2). An Ethernet MACadapter 330 is capable of receiving upstream data flow from endpointdevices 220 and transmitting downstream data to these devices. Eitherupstream or downstream data flows are respectively forwarded to orreceived from one or more packet processors 320-A and 320-B via thebroad bus 390. More specifically, the Ethernet MAC adapter 330 in thedownstream direction handles IPTV packets, such packets encapsulatevideo data of program being broadcasted. In addition, downstream dataincludes IP packets received from a WAN (through the GPON adapter 340)and are multicast through the Ethernet MAC adapters 330 to the endpointdevices. As will be described in detail below the multicasting isperformed under the control of at least one of the packet processors320-A and 320-B. Upstream data packets received through the Ethernet MACadapter 330 from an endpoint device can be also multicast to differentendpoint devices 220.

The GPON MAC adapter 340 is capable of processing upstream anddownstream traffic in accordance with the GPON standard. The GPONstandard is designed to allow data transmission at a rate of up to 2.488Gbps while ensuring data security and quality of service (QoS). The GPONMAC 340 supports a plurality of traffic containers (T-CONTs). A T-CONTis a virtual upstream channel to which bandwidth is granted by the OLT130. A single T-CONT can be allocated for an ONU 120, a class of service(CoS), or a logical ONU.

The DSP 360 is the handler of voice services and provides an interfaceto a telephone device connected to the gateway 300. The DSP 360 isadapted to receive and send voice samples from and to the telephonedevices. Specifically, analog voice signals received from a telephonedevice are sampled by the DSP 360 and saved in the external memory 305.These samples are further processed by the microprocessor 310, whichgenerates IP packets to include the voice data. Similarly, themicroprocessor 310 processes input IP packets including voice data andstored the processed packets in the memory 305. The DSP 360 retrievesthe data packets from the memory and generates a voice signals which aresent to a telephone device. The microprocessor 310 also processes IPTVpackets.

In accordance with an embodiment of the invention, each of the packetprocessors 320-A and 320-B multicast packets and is further adapted toperform GPON as well residential gateway processing tasks. The GPONresidential gateway 200 and its packet processors are described indetail in co-pending U.S. application Ser. No. 12/254,187 entitled “Agigabit passive optical network (GPON) residential gateway”, assigned incommon to the same assignee as the present application, and which ishereby incorporated for all that it contains.

In accordance with the principles of the invention, the GPON residentialgateway 210 provides a flexible multicasting solution, while maximizingthe efficiency of the memory usage. To this end, a downstream packetreceived at the GPON MAC adapter 340 is assembled in the external memory305. Then, a packet processor 320-A or 320-B processes the reassembledpacket to determine if the packet should be multicast to a multicastgroup. The determination is based on at least a destination MAC addressin the incoming packet. The network operator may also set preconfiguredparameters that would determine if an incoming packet should bemulticast.

If the input data packet should be multicast, a packet processor 320duplicates only the header of the incoming packet as to the number ofegress ports. The duplicated headers are modified to uniquely designatethe destination egress ports. For example, a different virtual LAN(VLAN), such as defined in the IEEE 802.1Q specification, is added tothe header. Thereafter, a packet processor 320-A or 320-B passes eachmodified header together with a pointer to the location of payloadportion of the external memory 305 to a destination Ethernet MAC adapter330. It should be noted that the header duplication is performed only ifthe header modification is required; otherwise, the incoming packet issent to all destination end-point devices.

This process is further illustrated in FIG. 4 where an input packet 400is multicast to three endpoint devices 220-1, 220-2 and 220-3respectively coupled to Ethernet MAC adapters 330-1, 330-2, and 330-3. Apayload portion 410 of the input packet 400 is saved in the externalmemory 305, while a header 420 is duplicated three times as headers 421,422 and 423. Each modified version includes a unique identifierdesignating an egress port (or an output interface) in the respectiveEthernet MAC adapters 330. In accordance with an embodiment of theinvention, the copies of the headers are indexed. Each of the headers421, 422 and 423 is passed to its respective Ethernet MAC adapter 330together with a pointer to the payload portion 410 stored in theexternal memory 305.

It should be appreciated that the size (i.e., number of bytes) of aheader is significantly less than the payload portion, therefore thememory bandwidth utilized when duplicating only the header is negligiblein comparison to duplicating the entire packet or only the payloadportion. For example, the size of a header 420 might be 64 bytes and thesize of the payload portion 410 might be 1024 bytes.

In order to transit a payload portion of a packet to an endpoint device,an Ethernet MAC adapter 330 retrieves the payload portion from theexternal memory 305, assembles the header to the payload portion, andsends the assembled packet to the destination endpoint device through anegress port designated in the modified header.

FIG. 5 shows a non-limiting and exemplary flowchart 500 useful indescribing the process of multicasting downstream data packetsimplemented in accordance with an embodiment of the invention. Adownstream packet is received at the GPON MAC adapter 340 and outputthrough one of the Ethernet MAC adapters 330. At S510, an input packet(e.g., a packet 400) is received as data fragments at the GPON MACadapter 340. At S520, incoming data fragments are assembled in theexternal memory 305. This is performed by a board bus adapter 395(indicated in FIG. 3 as “BB Handler”) interfacing between the broad bus390 and the GPON MAC adapter 340. Data fragments are sent to theexternal memory 305 through the DMA engine 350. While assembling thedata fragments, validity checks are performed on the assembled packet.These checks include at least bit errors and length checks. At S530, itis determined if the assembled packet should be multicast to members ofa multicast group, and if so execution continues with S540, otherwise,execution ends.

At S540, the packet processor 320 determines the egress port and theEthernet MAC adapters 330 through which the input packet should be sentto destination endpoint devices designated in the multicast group. AtS550, the header (e.g., a header 420) of the input packet is duplicatedas the number of endpoint devices in the multicast group. Then, at S560,each copy of the header is modified to include a unique identifier foreach egress port determined at S540. At S570 each modified header ispassed to its destination Ethernet MAC adapter 330 together with apointer to the location of the payload portion in the external memory305.

At S580, when a destination Ethernet MAC adapter 330 is scheduled totransmit the packet, the data chunks are retrieved from the externalmemory 305. The access to the external memory 305 is through arespective broad bus handler 395 and the DMA engine 350. At S590 uponreception of the entire packet, at the Ethernet MAC adapter 330 thepacket is being transmitted to the subscriber device connected to theadapter 330. It should be noted that each packet processor 320 supportsa pipeline architecture, thus at any specific time more than one packetis being processed. In addition, a packet processor 320 does not requirecompleting the processing of a packet before starting to process thenext packet. It should be further noted that duplication of headers isrequired only if header should be modified. If no modification isrequired, then the incoming packet is sent to the destination end-pointdevices.

It should be appreciated that the method described herein can be easilyadapted to multicast packets received from one of the Ethernet MACadapters 330 to other endpoint devices connected to other Ethernet MACadapters 330. Similarly, the payload portion of a packet received on theEthernet MAC adapter 330 is saved in the external memory 305 and itsheader is duplicated. Each copy of the header is modified and passed(together with the pointer to the payload portion) to an Ethernet MACadapter 330 connected to a destination endpoint device.

The foregoing detailed description has set forth a few of the many formsthat the invention can take. It is intended that the foregoing detaileddescription be understood as an illustration of selected forms that theinvention can take and not as a limitation to the definition of theinvention. It is only the claims, including all equivalents that areintended to define the scope of this invention.

Most preferably, the principles of the invention are implemented as anycombination of hardware, firmware and software. Moreover, the softwareis preferably implemented as an application program tangibly embodied ona program storage unit or computer readable medium. The applicationprogram may be uploaded to, and executed by, a machine comprising anysuitable architecture. Preferably, the machine is implemented on acomputer platform having hardware such as one or more central processingunits (“CPUs”), a memory, and input/output interfaces. The computerplatform may also include an operating system and microinstruction code.The various processes and functions described herein may be either partof the microinstruction code or part of the application program, or anycombination thereof, which may be executed by a CPU, whether or not suchcomputer or processor is explicitly shown. In addition, various otherperipheral units may be connected to the computer platform such as anadditional data storage unit and a printing unit.

1. A method for multicasting packets in a passive optical network (PON)residential gateway, comprising: storing a payload portion of an inputpacket in a memory; duplicating a header of the input packet to createduplicate headers as the number of destination endpoint devices;modifying each of the duplicated headers to uniquely designate an outputinterface of an Ethernet medium access (MAC) adapter coupled to at leastone of the destination endpoint devices; passing to the Ethernet MACadapter its respective modified header together with a pointer to alocation of the payload portion in the memory; generating a multicastpacket by retrieving the payload portion from the memory and attachingthe modified header to the payload portion; and transmitting themulticast packet to the destination endpoint device coupled to theEthernet MAC adapter.
 2. The method of claim 1, wherein the PON is atleast Gigabit PON (GPON).
 3. The method of claim 2, wherein modifyingthe duplicated header comprising adding a virtual local area network(VLAN) tag.
 4. The method of claim 1, further comprising: checking ifthe header of the input packet should be modified; and sending the inputpacket to the destination endpoint devices if the header should not bemodified.
 5. The method of claim 1, wherein the input packet is receivedfrom an optical line terminal (OLT) of the PON.
 6. The method of claim5, wherein the input packet is received from an endpoint deviceconnected to a local area network (LAN).
 7. The method of claim 1,wherein the determination if the input packet should be multicast isbased on at least a destination medium access (MAC) address of the inputpacket.
 8. A residential gateway adapted to multicast data packets in apassive optical network (PON), comprising: a plurality of Ethernet mediaaccess control (MAC) adapters for interfacing with a plurality ofendpoint devices; a PON MAC adapter for interfacing with an optical lineterminal (OLT) of the PON; and a memory for storing at least payloadportions of input packets; and at least one packet processor forperforming the process of multicasting an input packet by: storing apayload portion of an input packet in the memory; duplicating the headerof the input packet to create duplicate headers as the number ofdestination endpoint devices; modifying each of the duplicated header touniquely designate an output interface of an Ethernet medium access(MAC) adapter coupled to at least one of the destination endpointdevices; passing to the Ethernet MAC adapter its respective modifiedheader together with a pointer to a location of the payload portion inthe memory; generating a multicast packet by retrieving the payloadportion from the memory and attaching the modified header to the payloadportion; and transmitting the multicast packet to the destinationendpoint device coupled the Ethernet MAC adapter.
 9. The residentialgateway of claim 8, wherein the PON is at least a Gigabit PON (GPON).10. The residential gateway of claim 8, wherein the input packet isreceived through the PON MAC adapter.
 11. The residential gateway ofclaim 8, wherein the input packet is received through an Ethernet MACadapter connected to an endpoint device.
 12. A computer readable mediumhaving stored thereon a computer executable code causing a packetprocessor of a passive optical network (PON) residential gateway toperform a process of multicasting, comprising: storing a payload portionof an input packet in a memory; duplicating a header of the input packetto create duplicate headers as the number of destination end-pointdevices; modifying each of the duplicated header to uniquely designatean output interface of an Ethernet medium access (MAC) adapter coupledto at least one of the destination endpoint devices; passing to theEthernet MAC adapter its respective modified header together with apointer to a location of the payload portion in the memory; generating amulticast packet by retrieving the payload portion from the memory andattaching the modified header to the payload portion; and transmittingthe multicast packet to the destination endpoint device coupled to theEthernet MAC adapter.